Could we refactor this skip block into a utility function?  It's used in a few places.