Refactored how the Medusa settings are handled