Removing libraries from template