Spliced out the AnalyseStage from BuildPlan.

Signed-off-by: Frank Mertens <frank@cyblogic.de>