Manually maintaining the list of classes should no longer be needed when using composer based auto-loading. Check how we are doing it for Wikibase.