Apparently pylint complains about duplicate code.