Use deprecated function's module logger instead of traits logger.