Inline require refactor in api