Fix PMD warnings in model module.