Refactoring shoe controller for readability