Origin of a function by tandem gene duplication limits the evolutionary capability of its sister copy