Refactor to comply with kernel coding guidelines.