Replace deprecated use/only with require/refer