Move copypasta to its own module, and bump up @timed limits for pypy.