Refactored SubscriptionController.java