Converts public fields to public properties