Move the object visibility check from Alembic/USD-specific code into the `io/common` module. No functional changes.