Move activation/deactivation hooks in the class constructor