Moves code to own modules.