Moved filtering of meaningless 1's to the layer that knows they are undesired.