Fix compute resource entity

Make sure that the _factory_data does not override any user provided
field value.
Can you add a comment here to explain the logic?