remove legacy definition