Refactor constructor to use overloading.