Split fpgen into multiple files