An API is there for code reuse. This API will not be reused. Your flag controls ONE line of code in one particular file - it therefor does not require an API since it's not going to be reused anywhere.