Refactor to remove unnecessary entries in paths array
Merge pull request #588 from hexid/refactor-bc

Refactor to remove unnecessary entries in paths array