Trim unused formula