Moved plugin life cycle related listeners into separate class