Less duplicate code.