Extract word extracting functionality into separate class for better testability