Common code for creating a style function
Delete style option before passing to base