Refactored most of snippets.get() into apos.get() to reduce duplication