I would like to simplify the creation of \"Custom Post Types\" in WordPress as it is tedious to go through the same script and change all the custom post type name instances
This is an old thread but simply use anonymous functions:
add_action('init', function() use($args) { //... });
Then there is no need to declare so many functions.