Moved a method that was in the main plugin class but was being hooked in the admin class.