Refactoring remove_lost_buses to use Array.map