remove legacy stage definition