Refactorization of function and method traits