Revamped and simplified load_spec infrastructure