Moving timeout injection from constructor to method