Refine generate projects