[RFK] move parse_precondition to separate function
[RFK] move parse_precondition to separate function

This is needed for producer preconditions which need to call this
function recursively.

csdb/Tapper-MCP,tapper/Tapper-MCP,csdb/Tapper-MCP,tapper/Tapper-MCP