Simplify gen/*.def generation.