Reducing code to the header