Move object properties to constructor