Applying DRY on css