Moved non-API elements into detail namespace.