Also remove unused properties and merge some of the common properties value into a single declaration