Improve non-rest object constructor