Move code template to file
Generate static from methods