@Override
  public Cell filterCell(Entry entry, Cell cell) {
    ExtendedCell extendedCell = PrivateCellUtil.ensureExtendedCell(cell);
    NavigableMap<byte[], Integer> scopes = entry.getKey().getReplicationScopes();
    if (scopes == null || scopes.isEmpty()) {
      return null;
    }
    byte[] family = CellUtil.cloneFamily(cell);
    if (CellUtil.matchingColumn(cell, WALEdit.METAFAMILY, WALEdit.BULK_LOAD)) {
      return bulkLoadFilter.filterCell(extendedCell, new Predicate<byte[]>() {
        @Override
        public boolean apply(byte[] family) {
          return !hasGlobalScope(scopes, family);
        }
      });
    }
    return hasGlobalScope(scopes, family) ? cell : null;
  }
Keeps KVs that are scoped other than local
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/ScopeWALEntryFilter.java