[Olena-patches] 2972: Make morpho erosion rely on a general code.