Factored out the static method