Refactored admin methods into a single method that creates the appropriate method for each type of data.