Cleanup `up' function with `dotimes' macro.