Ha! I really wanted to say to "move this to an initializer", but I guess that just wouldn't work out :D
Perhaps move it to a new file at the top-level of the project, and `require()` it in?