[Monica] Fix various SonarQube issues (mostly unused imports).