Abstracted active class to a setActive class method.