Removed useless "flatten" function from Primitive.