refactoring markers directive spec