Simplify fraction where required