Renamed core helper to core "middleware", which is clearly what it really is.