Conditionally load AS dependencies.