Refactored post metabox and post meta generators