The `struct modes' are only used by the getter-functions in the same file, so we can safely mark them static and const.