Make function injectable (entity_bundle, l, token_replace)