refactor: Move some directives and code to the notes file instead of app.