Refactor out 'method' attribute