Remove use of deprecated ApplicationHolder.getApplication. Fixes #2