Refactor unique title and text directives