inst_user_first.rb - code cleanup and refactoring