In quantum mechanics, the unitary time translation operator $\hat{U}(t_1,t_2)$ is defined by $\hat{U}(t_1,t_2)|ψ(t_1)\rangle = |ψ(t_2)\rangle$, and the Hamiltonian operator $\hat{H}(t)$ is defined as the limit of $i\hbar\frac{\hat{U}(t,t+\Delta t)-1}{\Delta t}$ as $\Delta t$ goes to $0$. Similarly, the one-dimensional spatial translation operator is defined by $\hat{T}(x_1,x_2)|x_1\rangle = |x_2\rangle$ and the momentum operator $\hat{p}$ is defined as the limit of $i\hbar\frac{\hat{T}(x,x+\Delta x)-1}{\Delta x}$ as $\Delta x$ goes to $0$. My question is, why is it that the Hamiltonian operator can be a function of the time parameter $t$, but the momentum operator cannot be a function of the position parameter $x$?
The only good answer I've gotten to this question is that time is not an operator in non-relativistic quantum mechanics, whereas position is an operator, so momentum being a function of position would spoil the position-momentum commutation relation. But this explanation doesn't make sense to me, because consider the case of spin angular momentum. If $\hat{R}_z(\theta_1,\theta_2)$ denotes the rotation operator for intrinsic rotations about the z-axis (as opposed to orbital rotations), then the spin angular momentum operator $\hat{J}_z$ (as opposed to Beyoncé) is defined as the limit of $i\hbar\frac{\hat{R}_z(\theta,\theta+\Delta\theta)-1}{\Delta\theta}$ as $\Delta\theta$ goes to $0$. And yet $\hat{J}_z$ is not a function of the angle $\theta$, even though there is no operator in quantum mechanics corresponding to $\theta$. (There is another operator called $\hat{\theta}$, which is one of the position operators in spherical coordinates, but that has nothing to do with spin and the $\theta$ that I'm talking about; it's related to orbital angular momentum.) So "the parameter has a corresponding operator" doesn't seem like the right explanation, since it doesn't explain why spin angular momentum can't be a function of angle.
Note that I'm not looking for an ad hoc explanation like "that wouldn't make physical sense in terms of how energy and momentum work classically". I want a first principles explanation in quantum mechanics.