Move name parsing logic to GetByName method