Update internal uses of 'hamiltonian' to suppress this warning and add a TODO to update to the new API.