I am going through David Tong's QFT course, for which lecture notes and exercises are available online at http://www.damtp.cam.ac.uk/user/tong/qft.html.
In Question 1.8 we have the Lagrangian (density) $$L = -\frac{1}{4} F^{\mu \nu} F_{\mu \nu} + \frac{1}{2} m^2 C_\mu C^\mu,$$ $$F_{\mu \nu} = \partial_\mu C_\nu - \partial_\nu C_\mu,$$ which is like the standard electromagnetic field in the case $m=0$. I eventually derive the conjugate momenta $\Pi_\mu$ to $C_\mu$ and convert the Lagrangian to a Hamiltonian $$H = -\frac{1}{2} \Pi_i \Pi^i + \frac{1}{4}F^{ij}F_{ij} - \frac{1}{2} m^2 C^{\mu}C_{\mu} - \Pi_i \partial^i C_0,$$ answering the question.
However in a pdf of tutor's solutions I came across online (which I maybe shouldn't link), the tutor comments and interprets further: they rearrange the last term, $$H = -\frac{1}{2} \Pi_i \Pi^i + \frac{1}{4}F^{ij}F_{ij} - \frac{1}{2} m^2 C^{\mu}C_{\mu} - C^0(\partial_i \Pi^i) - \partial_i (\Pi^i C^0),$$ and comment
[the term] involves an irrelevant three-divergence term. Since the remainder of the Hamiltonian contains no derivatives in $C^0$, $C^0$ may be regarded as a multiplier that, in the $m=0$ theory, imposes the constraint $\nabla \cdot \Pi = m^2 C^0 = 0$, which is precisely Gauss' law.
Since we are back to examining the $m=0$ case, this is a statement about the standard electromagnetic field.
I don't understand either statement here.
How is $\partial_i (\Pi^i C^0)$ "irrelevant"? Can we just ignore this divergence, which as far as I can see has a nonzero value?
$- C^0(\partial_i \Pi^i)$ could be a (Lagrange) multiplier, how is it rearranged to include the $m^2$ term and (together) constrain to $\nabla \cdot \Pi=0$?