Break post ID extraction into two steps