Make the API more DRY.