Remove redundant function, move to separate file and load only this file when only template name is needed. This way a lot less code gets loaded on every make call.