Story 47877509: moving variable declaration for parent_type