Move types to a separate JSON file