The transmission line between the transformer to the RJ45 should be short as much as possible to reduce the probability of picking up noises from the board and reflect them to the outside on the one hand, and on the other hand to reduce the probability of ESD event to jump to peripheral traces which are not protected on the board.