Small refactorization.