LPS-47346 Remove extra task definiations when it is invoked by portal