Extract methods to their own classes by their functions.