Separated dna logic to separate package.

I know this is massive overkill, but I just wanted to practice refactoring code into a new package.