Extract methods from generate