Refactoring on Types_Controller

It has been used "Extract Method Strategy" like CodeClimate says