Refactor extraneous parts from the main body to intro.