Extracting constant STACK_TRACE_DEPTH