Splited api_notify methods logic into more methods