Do the domain check directly in the field input class to avoid the need for another function to do it elsewhere. Also move one function to be closer to a similar one, rename some functions, and avoid the need for two intermediate span variables.
Do the domain check directly in the field input class to avoid the need for another function to do it elsewhere. Also move one function to be closer to a similar one, rename some functions, and avoid the need for two intermediate span variables.