Introduced a base template for the GenericAxis template in order to reduce code repetition.