Update flatten to remove interfaces that were introduced in fast schema.