Extract method from constructor