Hello, thank you for the pull request. This is indeed a good addition. I had a look to the code - I think it is good to combine this with a small refactoring in the modules as well.
As git master branch is currently frozen, I will put this on hold until 5.3 is released in a few weeks.