extract common style