Move activation,deactivation and uninstallation hook to the main file.