Minify application controller logic