htmx is really bare bones and prefers replacing html as opposed to updating fields with javascript. When done this way a structure similar do django forms inevitably arises if one tries to think about code reuse