Random walks in dynamic random environments: A transference principle