LPS-47346 Clean parent project task defintions when it is invoked outsid...

...e to avoid logging like "Trying to override old definition of task ***"