Main executable: some work towards removing dependencies on some of the Core plugin features (#508) [ci skip].