Refactor ApplicationController#construct_approved_names.
Refactor ApplicationController#construct_approved_names.

* Fix some Rubocop offenses, mostly by Extract Method.
* Also fix some earlier Assignment In Condition offenses (by surrounding assignment with parentheses).

pellaea/mushroom-observer,pellaea/mushroom-observer,pellaea/mushroom-observer,MushroomObserver/mushroom-observer,pellaea/mushroom-observer,raysuelzer/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,JoeCohen/mushroom-observer,JoeCohen/mushroom-observer,raysuelzer/mushroom-observer,pellaea/mushroom-observer,raysuelzer/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer,pellaea/mushroom-observer,raysuelzer/mushroom-observer,JoeCohen/mushroom-observer,raysuelzer/mushroom-observer,raysuelzer/mushroom-observer,pellaea/mushroom-observer,raysuelzer/mushroom-observer