move shortcode functions out of a class