Extract class.

Makes refactoring easier and avoids adding private methods to classes that include the modules.