Split markup to separate components