Setup of taxonomy term template pages

Added this action hook to my functions.php file:

add_action( 'pre_get_posts', function ( $q )
{
if (    !is_admin() // Only target the front end queries
     && $q->is_main_query() // Targets the main query only
     && $q->is_tax('course-type') // Only target category pages
) {
    $q->set( 'posts_per_page', -1 );
      }
});

Then using the default loop on the taxonomy-course-type.php template file. Works really well without the need of any other even more specific taxonomy template files.