Fix multiple prefixes (#21)
Deduplicate code usage