Well your solution is still hacky and dependant on the crate/closet types not changing.