Clean code for function that renders stats field href tags