Really, it's just adding a simple method somewhere that would take two arguments. And the reason to do this is to not duplicate this code, which might look trivial until we will need to change it and somebody will only update it in one place. This is the kind of stuff we should do to keep the code maintainable in the long term ;-)