Move populate/get into its own method

Signed-off-by: Ian Macalinao <me@ian.pw>