It's a general behaviour handling function that behaves on the application-wide level so I think it should be placed in this file. However, I would like to know your reasons of not placing any function here.