Remove the use of reflection since the required method is now protected
Make the build more robust in case of nested modules