The goal is to simplify reusing the same code to draw the inputs of the node tool operator. This patch simply extracted all the modifier-specific code into callbacks which are passed in from a higher level. The operator drawing code would basically just need to provide different callback functions. Although some more additional cleanups may become necessary to make that fully work. Pull Request: https://projects.blender.org/blender/blender/pulls/139384