Refactored the fixture loading into a helper function