Refactor to use ES6 property method assignment syntax.