The function on_place_bucket defined a couple of variables that were used only once or in a redundant check. After removal of the redundant check in a previous commit, all use-once variables can now be substituted with their assignment expressions.