Extracts server control code to partials, page logic to partials