Split attributes into a header and source file