Simplify some snippets by removing some attributes (e.g class, etc)
Move split function to rakefile and make it more reusable