Share common functionality between style rule creations