Do not any longer refactor externally defined functions because of causing linkage errors.