Refactor duplicated SASS code into methods.