find the limit $$\lim\_{x\to\pi/4}\frac{\tan(x)-1}{x-\pi/4}$$

direct substitution results in $0/0$

and it seems that there's no way to factor it

When I look at its graph

It's clear that it has the limit ***2*** as $x$ approaches $\pi/4$

the question is ***How to factor this function*** ??
!