The service() method in GenericPortlet handles all requests for a particular portlet and dispatches to the appropriate method based on the portlet mode.
To remove some of the core portlets from the Add Application menu and add them in the Control Panel: