(WIP) stab at reordering region middleware (bug 865132)