Refactored to support dependency injection in locate_bikes