Make this function static (it's never used outside of the constructor function), or fold the code directly into the constructor.