Leftover cleanup from "shared" refactor

Delete an unused file, move over our generic `next` middleware into our library.  Easy.