[migrations] Refactor contact displaying