Simple refactor hooks to methods for later use.