Removing unnecessary dependencies from controller, Gemfile