The whole method is moved to its own class.