Merge.hs: cleanup: compute complete flag set assignment only once

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>