PetPlugin: moved all the commands to the separated classes.