Split out code and header partials