Does this function belong to `Layer`?