Refactor application filesystem structure