Realised the new middleware registry method works with pre-0.9, so I removed the old one