[reverse] Move the code from multi/ and drop TypeOf dependency