ModelRailroadForums.com is a free Model Railroad Discussion Forum and photo gallery. We cover all scales and sizes of model railroads. Online since 2002, it's one of the oldest and largest model railroad forums on the web. Whether you're a master model railroader or just getting started, you'll find something of interest here.
Most prefab level crossings peieces act as to rerailers. You can see how they do it and maybe 3d print or mould some kind of drop in. Some I have used are the minitrix, and Kato ones (and Hornby back in the day) they will rerail a (not severely) detailed bogie without much ado. Basically make the outer part a ramp with some guide rails.
This shows the idea