Remove unneded code from application controller