Refactoring of ChargifyProvider class.