The bacterial flagellar motor: remodelling a nanomachine as you swim