Refactor out wordfromid