Refactor username validators definitions.