Refactor long methods

Pushing down the `MethodLength`/`Max`.