Ok, still it should be in a template or in shared function.