Brought back hub#republish to simplify hub#publish implementation.