Removed unused code from controllers.js

There was extra controller logic that has been factored out to separate files. Removed that extra code.