Refactor methods.