Editor: Refactor the way block bindings sources are handled
It fixes the coding style issues reported. It goes further and improves the code quality it other places where the logic for block bindings was added.
Follow-up for [57514]. Props: gziolo, mukesh27, youknowriad, santosguillamot. See #60282.