Refactored how getting constants works