Move custom post definitions to separate file and include in functions.php.