MR creation page is calling merge_base_commit 4 times with the same parameters. We can optimize these calls with memoization pattern.
merge_base_commit
repository_service#find_merge_base