On gauge freedom and subsystems in quantum electrodynamics