Divide methods into separate modules.

Significantly lower complexity.