migrated the flatten by amount node.