Remove unused, commented-out code
Restructure WP-CLI _get_achievement_id_by_post_name() to avoid unreachable code