Make defaults an object and loop through props.