Move dontRepeat and logOnce from generics to utils