Remove some dead code in application controller.