How about replacing the intake elbow with a Y like this and then using a removable plug in the horizontal part. Then you can just remove the plug for maintenance or for using it as a traditional overflow pipe. You could use the same fitting and plug on the outlet end, It should work as a trap and would make it easier to push debris out from the top.
