Clean up rogue function in app.module file

Function should be in mainController