Refactored for WP-Metabox dependency