Yeah I didn't really comment my implementation.  I didn't put it in EditorUtils.fs because I couldn't think of another scenario that would ever need that logic.  Should have realized that there would be another case that needed it :)