And this saves some code duplication.