Refactor code get province