Moved multiline_merge function to utils.py.