On the first note, it is done the same way for crash_type but, I have an idea of fixing it for my case. On the second note, is has always been passed as a string to the middleware so, I kept it a string.