Removed some unused backend code in controllers and routing