Minor refactoring to avoid code duplication.
1 file changed