refactoring micropub