Separated Layer prototype from controller.