Remove deprecated visibility related constant

This change is a BC break as explained in the second commit comment