The suppression of beam-related background in the ILL neutron-antineutron oscillation experiment