Fix ViewWithFlatten and addFlatten implicit passing (move to method)